package cs4280.bean;

public class Counter {

    private int count = 0;
    private final Object writeLock = new Object();

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getCountIncrement() {
        synchronized(this.writeLock) {
            this.count += 1;
        }

        return Integer.toString(this.count, 10);
    }


}
